package com.woniuxy.consumer.student.feignClients;

import com.woniuxy.common.DTO.ResponseResult;
import com.woniuxy.common.entity.Student;
import com.woniuxy.consumer.student.feignClients.StudentOpenfeign;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: linKe
 * @Date: 2022/1/21 16:21
 * @FileName: StudentOpenfeignFallback
 * @version: 1.0
 * @Description: 描述
 */
// @Component
public class StudentOpenfeignFallback implements StudentOpenfeign {
    @Override
    public ResponseResult<Student> getStudentById(int id) {
        return null;
    }

    @Override
    public ResponseResult<?> updateStudent(Student student) {
        return null;
    }

    @Override
    public ResponseResult<?> addStudent(Student student) {
        return null;
    }

    @Override
    public ResponseResult<?> deleteStudent(int id) {
        return null;
    }

    @Override
    public ResponseResult<List<Student>> getStudent() {
        return null;
    }

    @Override
    public ResponseResult<?> timeout() {
        return new ResponseResult<>(500,"fallback实现类降级处理",null);
    }

    @Override
    public ResponseResult<?> ok() {
        return null;
    }
}
